package com.xyd.Service;

import com.xyd.dao.AdminMapper;
import com.xyd.bean.Admin;
import com.xyd.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

public class AdminService {
    SqlSession sqlSession = SqlSessionFactoryUtil.getSqlSession();
    AdminMapper adminMapper =  sqlSession.getMapper(AdminMapper.class);

    public Admin loginAdmin(String name, String password) {
        return adminMapper.loginAdmin(name, password);
    }
}
